const util = require('../../utils/common.js')
var app = getApp();
Page({
  data: {
    sex: ["保密", "男", "女"],
    sexIndex: 0,
    date: util.formatDay(new Date()),
    showTopTips: false,
    userInfo: {},
  },
  onLoad: function () {
    console.log("123123")
    if (app.globalData.userInfo) {
      this.setData({
        userInfo: app.globalData.userInfo,
      })
    }
  },
  bindDateChange: function (e) {
    this.setData({
      date: e.detail.value
    })
  },
  showTopTips: function () {
    var that = this;
    this.setData({
      showTopTips: true
    });
    setTimeout(function () {
      that.setData({
        showTopTips: false
      });
    }, 3000);
  },
})